<template>
	<view class="uni_box home">
		<navbar title='模拟考试' :yin="false">
		</navbar>
		<view class="content">
			<view class="lianview">
				
				<view class="liatwo" v-for="(item,index) in 2" :key="index" @click="getJuan(item)">
					<view class="oneview">
						<image class="lei" src="@/pages_subject/static/img/lei.png" mode="" />
					</view>
					<view class="rview">
						<view class="ltone">
							<text class="lmiaoname">  Corporate Risk Management: A Primer</text>
							<view class="lmiantwo">
								<text class="tishu ">时长：120分钟 </text>
								<text class="tishu ">总分：100分</text>
								<text class="tishu">得分：0分</text>
							</view>
							<view class="jindu">
								<view class="jinleft">
									<u-line-progress active-color="#FD864F" height="15" :striped="true" :striped-active="true"
							inactive-color="#EEEEEE" :percent="70"></u-line-progress>
								</view>
								<text class="tishutwo">25/930题</text>
							</view>
						</view>
						<image class="del" style="margin-left: auto;width: 31rpx;height: 30rpx;" src="@/pages_subject/static/img/zhang.png" mode="" />
						<image class="del" @click="gettongji" style="width: 25rpx;height: 30rpx;" src="@/pages_subject/static/img/baogao.png" mode="" />
					</view>
					
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				test_id:''
			}
		},
		onLoad(option) {
			if(option.test_id){
				this.test_id = option.test_id
			}
			
		},
		onShow() {
		},
		methods: {
			gettongji(){
				this.navrouter("/pages_subject/twoPage/TiPage/TiTongji");
			},
			getJuan(item){
				this.navrouter("/pages_subject/twoPage/TiPage/ShiJuanDetail?id="+item.id+'&test_id='+this.test_id);
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #fff;
	}
	.content{
		background-color: #fff;
		// padding-bottom: 150rpx;
		padding: 10rpx 20rpx;
		.lianview{
			// margin-bottom: 20rpx;
		}
		.oneview{
			display: flex;
			// justify-content: flex-end;
			position: relative;
			width: 22rpx;
			margin-right: 20rpx;
			.lei{
				width: 22rpx;
				height: 22rpx;
				position: absolute;
				top: 5rpx;
			}
		}
		.rview{

		}
		.lianone{
			display: flex;
			flex-direction: row;
			align-items: center;
			border-bottom: 1rpx solid #eee;
			padding: 20rpx 0;
			.quan{
				width: 42rpx;
				height: 42rpx;
				margin-right: 20rpx;
			}
			.tibiao{
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 26rpx;
				color: #333333;
			}
			.tishu{
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 24rpx;
				color: #A3A3A3;
				display: block;
				margin-top: 10rpx;
			}
			.tinum{
				color: rgba(253, 134, 79, 1);
			}
		}
		.ricon{
			margin-left: auto;
		}
		.liatwo{
			// margin-left: 30rpx;
			display: flex;
			// padding-left: 20rpx;
			flex-direction: row;
			// align-items: center;
			border-bottom: 1rpx solid #eee;
			padding: 30rpx 20rpx;
			.quan{
				width: 10rpx;
				height: 10rpx;
				background-color: rgba(253, 134, 79, 1);
				border-radius: 50%;
				margin-right: 20rpx;
			}
			.ltone{
				display: flex;
				flex-direction: column;
				width: 85%;
				.lmiaoname{
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 24rpx;
					color: #333333;
				}
				.lmiantwo{
					display: flex;
					flex-direction: row;
					align-items: center;
					margin-top: 15rpx;
					justify-content: space-between;
					.tishu{
						font-family: PingFang SC;
						font-family: PingFang SC;
						font-weight: 500;
						font-size: 24rpx;
						color: #888888;
						display: inline-block;
						margin-right: 20rpx;
					}
					.tishunum{
						color: rgba(253, 134, 79, 1);
					}
					.xian{
						color: rgba(253, 136, 79, 1);
					}
				}
				.jindu{
					display: flex;
					flex-direction: row;
					align-items: center;
					margin-top: 20rpx;
					.jinleft{
						width: 70%;
						position: relative;
					}
					.tishutwo{
						margin-left: 30rpx;
						font-family: PingFang SC;
						font-weight: 400;
						font-size: 24rpx;
						color: #999999;
					}
				}
				
			}
			.del{
					width: 28rpx;
					height: 28rpx;
					margin-left: 30rpx;
				}
		}
		.rview{
			flex: 1;
			display: flex;
			flex-direction: row;
			align-items: center;
		}
	}
</style>
